﻿using System;
using System.Linq;
using System.Windows.Forms;
using BtcPay;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btcPayButton1_Click(object sender, EventArgs e)
        {
            var f = new Feature(Guid.NewGuid());
            var pa = new PayAdress();
            pa.Amount = "0.001";
            pa.Label = "TestPayment";
            pa.Message = f.Id.ToString();
            pa.ToAddress = "19bBG8haezi6ZidrF5KBYd8my6SBL2cCkT";

            var pd = new PayDialog(pa, f);
            if (pd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {

            }
        }

        private void donationButton1_Click(object sender, EventArgs e)
        {
            var f = new Feature(Guid.NewGuid());
            var pa = new PayAdress();
            pa.Amount = "0.001";
            pa.Label = "TestPayment";
            pa.Message = f.Id.ToString();
            pa.ToAddress = "19bBG8haezi6ZidrF5KBYd8my6SBL2cCkT";

            var pd = new PayDialog(pa, f);
            if (pd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {

            }
        }
    }
}